﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02000DFD RID: 3581
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class RelicFilterPlanIcon : IMessage<RelicFilterPlanIcon>, IMessage, IEquatable<RelicFilterPlanIcon>, IDeepCloneable<RelicFilterPlanIcon>, IBufferMessage
	{
		// Token: 0x17002D7A RID: 11642
		// (get) Token: 0x0600A0C4 RID: 41156 RVA: 0x001ADE38 File Offset: 0x001AC038
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<RelicFilterPlanIcon> Parser
		{
			get
			{
				return RelicFilterPlanIcon._parser;
			}
		}

		// Token: 0x17002D7B RID: 11643
		// (get) Token: 0x0600A0C5 RID: 41157 RVA: 0x001ADE3F File Offset: 0x001AC03F
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return RelicFilterPlanIconReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17002D7C RID: 11644
		// (get) Token: 0x0600A0C6 RID: 41158 RVA: 0x001ADE51 File Offset: 0x001AC051
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return RelicFilterPlanIcon.Descriptor;
			}
		}

		// Token: 0x0600A0C7 RID: 41159 RVA: 0x001ADE58 File Offset: 0x001AC058
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RelicFilterPlanIcon()
		{
		}

		// Token: 0x0600A0C8 RID: 41160 RVA: 0x001ADE60 File Offset: 0x001AC060
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RelicFilterPlanIcon(RelicFilterPlanIcon other) : this()
		{
			this.isAvatarIcon_ = other.isAvatarIcon_;
			this.iconId_ = other.iconId_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600A0C9 RID: 41161 RVA: 0x001ADE91 File Offset: 0x001AC091
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RelicFilterPlanIcon Clone()
		{
			return new RelicFilterPlanIcon(this);
		}

		// Token: 0x17002D7D RID: 11645
		// (get) Token: 0x0600A0CA RID: 41162 RVA: 0x001ADE99 File Offset: 0x001AC099
		// (set) Token: 0x0600A0CB RID: 41163 RVA: 0x001ADEA1 File Offset: 0x001AC0A1
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool IsAvatarIcon
		{
			get
			{
				return this.isAvatarIcon_;
			}
			set
			{
				this.isAvatarIcon_ = value;
			}
		}

		// Token: 0x17002D7E RID: 11646
		// (get) Token: 0x0600A0CC RID: 41164 RVA: 0x001ADEAA File Offset: 0x001AC0AA
		// (set) Token: 0x0600A0CD RID: 41165 RVA: 0x001ADEB2 File Offset: 0x001AC0B2
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint IconId
		{
			get
			{
				return this.iconId_;
			}
			set
			{
				this.iconId_ = value;
			}
		}

		// Token: 0x0600A0CE RID: 41166 RVA: 0x001ADEBB File Offset: 0x001AC0BB
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as RelicFilterPlanIcon);
		}

		// Token: 0x0600A0CF RID: 41167 RVA: 0x001ADEC9 File Offset: 0x001AC0C9
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(RelicFilterPlanIcon other)
		{
			return other != null && (other == this || (this.IsAvatarIcon == other.IsAvatarIcon && this.IconId == other.IconId && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600A0D0 RID: 41168 RVA: 0x001ADF08 File Offset: 0x001AC108
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.IsAvatarIcon)
			{
				num ^= this.IsAvatarIcon.GetHashCode();
			}
			if (this.IconId != 0U)
			{
				num ^= this.IconId.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600A0D1 RID: 41169 RVA: 0x001ADF60 File Offset: 0x001AC160
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600A0D2 RID: 41170 RVA: 0x001ADF68 File Offset: 0x001AC168
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600A0D3 RID: 41171 RVA: 0x001ADF74 File Offset: 0x001AC174
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.IconId != 0U)
			{
				output.WriteRawTag(24);
				output.WriteUInt32(this.IconId);
			}
			if (this.IsAvatarIcon)
			{
				output.WriteRawTag(56);
				output.WriteBool(this.IsAvatarIcon);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600A0D4 RID: 41172 RVA: 0x001ADFD0 File Offset: 0x001AC1D0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.IsAvatarIcon)
			{
				num += 2;
			}
			if (this.IconId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.IconId);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600A0D5 RID: 41173 RVA: 0x001AE01C File Offset: 0x001AC21C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(RelicFilterPlanIcon other)
		{
			if (other == null)
			{
				return;
			}
			if (other.IsAvatarIcon)
			{
				this.IsAvatarIcon = other.IsAvatarIcon;
			}
			if (other.IconId != 0U)
			{
				this.IconId = other.IconId;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600A0D6 RID: 41174 RVA: 0x001AE06C File Offset: 0x001AC26C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600A0D7 RID: 41175 RVA: 0x001AE078 File Offset: 0x001AC278
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 24U)
				{
					if (num != 56U)
					{
						this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
					}
					else
					{
						this.IsAvatarIcon = input.ReadBool();
					}
				}
				else
				{
					this.IconId = input.ReadUInt32();
				}
			}
		}

		// Token: 0x04003E02 RID: 15874
		private static readonly MessageParser<RelicFilterPlanIcon> _parser = new MessageParser<RelicFilterPlanIcon>(() => new RelicFilterPlanIcon());

		// Token: 0x04003E03 RID: 15875
		private UnknownFieldSet _unknownFields;

		// Token: 0x04003E04 RID: 15876
		public const int IsAvatarIconFieldNumber = 7;

		// Token: 0x04003E05 RID: 15877
		private bool isAvatarIcon_;

		// Token: 0x04003E06 RID: 15878
		public const int IconIdFieldNumber = 3;

		// Token: 0x04003E07 RID: 15879
		private uint iconId_;
	}
}
